<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <script src="../vue_lib/vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="app">
    <button v-on:click="counter +=1 ">数值：{{ counter }}</button>
    <br>
    <button v-on:dblclick="greet('abc',$event)">点击出弹框</button>
</div>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            counter: 0,
            name: 'vue'
        },
        methods: {
            greet: function (str,e) {
                alert(str)
                console.log(e)
            }
        }
    })
</script>
</body>
</html>